Skip to content

Instantly share code, notes, and snippets.

@abullrd
Last active May 20, 2024 14:03
Show Gist options
  • Save abullrd/8921493 to your computer and use it in GitHub Desktop.
Save abullrd/8921493 to your computer and use it in GitHub Desktop.
List Memcached Keys

From http://www.darkcoding.net/software/memcached-list-all-keys/

Telnet into memcached

telnet 127.0.0.1 11211

List items

stats items
STAT items:3:number 1
STAT items:3:age 498
STAT items:22:number 1
STAT items:22:age 498
END

Request cachedump

stats cachedump 3 100
ITEM views.decorators.cache.cache_header..cc7d9 [6 b; 1256056128 s]
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment